package team.first.movieapiv2.doc;

import dev.morphia.annotations.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true) // 可以链式赋值
@Entity(useDiscriminator = false)
@ApiModel("演职人员参演电影")
public class FilmographyDoc {

    @ApiModelProperty(value = "电影编号", example = "1291543")
    private Integer id;

    @ApiModelProperty(value = "电影片名", example = "Harry Poter")
    private String originalTitle;

    @ApiModelProperty(value = "电影中文名", example = "哈利波特")
    private String chineseTitle;

    @ApiModelProperty(value = "上映年份", example = "2003")
    private Integer year;

    @ApiModelProperty(value = "地区", example = "中国大陆")
    private String region;

    @ApiModelProperty(value = "电影分值", example = "9")
    private Double rating;

    @ApiModelProperty(value = "海报地址", example = "http://img3.doubanio.com/view/photo/s_ratio_poster/public/p2219011938.jpg")
    private String posterUrl;

    @ApiModelProperty(value = "电影海报名", example = "1291543.jpg")
    private String poster;

    @ApiModelProperty(value = "角色类型编号", example = "3")
    private Integer roleTypeId;
}